<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Admin_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="selectpicker" data-live-search="true" name="row[admin_id]">
                {foreach name='groupList' item='v'}
                    <optgroup label="{$v.name}">
                        {foreach name='v["adminData"]' item='vo'}
                            <option value="{$vo.id}">{$vo.nickname}</option>
                        {/foreach}
                    </optgroup>
                {/foreach}
                <!--<optgroup label="Camping">
                    <option>Tent</option>
                    <option>Flashlight</option>
                    <option>Toilet Paper</option>
                </optgroup>-->
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Brief')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-brief" data-rule="required" class="form-control" name="row[brief]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Workfile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-workfile" data-rule="required" class="form-control" size="50" name="row[workfile]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-workfile" class="btn btn-danger plupload" data-input-id="c-workfile" data-multiple="false" data-preview-id="p-workfile"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-workfile" class="btn btn-primary fachoose" data-input-id="c-workfile" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-workfile"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-workfile"></ul>
        </div>
    </div>
   <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Speedimages')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-speedimages" data-rule="required" class="form-control" size="50" name="row[speedimages]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-speedimages" class="btn btn-danger plupload" data-input-id="c-speedimages" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-speedimages"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-speedimages" class="btn btn-primary fachoose" data-input-id="c-speedimages" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-speedimages"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-speedimages"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Speedfile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-speedfile" data-rule="required" class="form-control" size="50" name="row[speedfile]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-speedfile" class="btn btn-danger plupload" data-input-id="c-speedfile" data-multiple="false" data-preview-id="p-speedfile"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-speedfile" class="btn btn-primary fachoose" data-input-id="c-speedfile" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-speedfile"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-speedfile"></ul>
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Expire_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-expire_date" data-rule="required" class="form-control datetimepicker" data-date-min-date="{:date('Y-m-d')}" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[expire_date]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wan_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-wan_date" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[wan_date]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>-->
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Statuslist')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-statuslist" data-rule="required" class="form-control selectpicker" name="row[statuslist]">
                {foreach name="statuslistList" item="vo"}
                    <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>-->
  <!--  <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Admin_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admin_name" data-rule="required" class="form-control" name="row[admin_name]" type="text" value="">
        </div>
    </div>-->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
